﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="ModalPostback.aspx.cs" Inherits="ModalPostback" %>
<%@ Register Assembly="jQueryDotNetLib" Namespace="jQueryDotNetLib.Extenders" TagPrefix="cc2" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="DemoTitleContentPlaceHolder" Runat="Server">
Modal Postback
</asp:Content>


<asp:Content ID="Content3" ContentPlaceHolderID="DemoContentPlaceHolder" Runat="Server">

<asp:Panel runat="server" ID="DialogPanel">
    This is a dialog.
    <asp:Label runat="server" ID="DialogLabel" Text=""></asp:Label>
    <asp:Button runat="server" onclick="DialogButton_Click"  ID="DialogButton" Text="Press Me" />
    
</asp:Panel>
<cc2:Dialog runat="server" Selector="#{DialogPanel}" Modal="true" />

</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="SourceContentPlaceHolder" Runat="Server">
<pre>
&lt;asp:Panel runat="server" ID="DialogPanel"&gt;
    This is a dialog.
    &lt;asp:Label runat="server" ID="DialogLabel" Text=""&gt;&lt;/asp:Label&gt;
    &lt;asp:Button runat="server" onclick="DialogButton_Click"  ID="DialogButton" Text="Press Me" /&gt;
    
&lt;/asp:Panel&gt;
&lt;cc2:Dialog runat="server" Selector="#{DialogPanel}" Modal="true" /&gt;

</pre>
</asp:Content>

